
<table align="center" border=1 width="100%">
<tr><td>

<?php
echo "<li> UPC Number : " . $this->upcNumber . "</li>";
echo "<li> UPC Id : " . $this->upcID . "</li>";
?>

</td>

<?php 
foreach ($this->upcAttributes as $k => $value) {
	if($this->upcAttributes[$k]['name'] == 'SWATCHIMAGE' || $this->upcAttributes[$k]['name'] == 'SWATCHTARGETIMAGE') {
		?>
		<td align="center">
		<img src="<?php echo $this->upcAttributes[$k]['value']  ?> alt="<?php echo "imageSourceDetail" ?>" height="100" width="100" />
		</td>
		<?php 
	}
	else {
		echo "<td>";
		echo $this->upcAttributes[$k]['name'] ." = " . $this->upcAttributes[$k]['value'];
		echo "</td>";
	}
}

?>


<td>
<form name="addtobag-<?php echo $this->upcNumber; ?>" action="/index.php/shoppingbag/additem" method="POST" >
<input type="hidden" name="upcid" value="<?php echo $this->upcID; ?>">
Quantity : <input type="text" size="6" name="quantity" value="1">
<INPUT TYPE=SUBMIT value="Add to Bag">
</form>

</td>
</tr>
</table>